package com.ruoyi.ui.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 拼单商品订单管理对象 ui_list_order
 *
 * @author ruoyi
 * @date 2022-09-06
 */
public class UiListOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 拼单订单id */
    private Long listorderId;

    /** 支付id */
    @Excel(name = "支付id")
    private Long payId;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long shopId;

    /** 拼单商品id */
    @Excel(name = "拼单商品id")
    private Long listproId;

    /** 地址id */
    @Excel(name = "地址id")
    private Long addrId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long memberId;

    /** 评论id */
    @Excel(name = "评论id")
    private Long commentId;

    /** 分组 */
    @Excel(name = "分组")
    private Long group;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String listorderNum;

    /** 拼单发起时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "拼单发起时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 拼单结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "拼单结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 拼单成功时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "拼单成功时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date
            finshTime;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finallyTime;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal oneprice;

    /** 数量 */
    @Excel(name = "数量")
    private Long count;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal totalprice;

    /** 状态 0:拼单失败1:待付款 2:待发货 3:待收货(已发货) 5:成功 6:待拼单7拼单成功 */
    @Excel(name = "状态 0:拼单失败1:待付款 2:待发货 3:待收货(已发货) 5:成功 6:待拼单7拼单成功")
    private Integer state;

    public void setListorderId(Long listorderId)
    {
        this.listorderId = listorderId;
    }

    public Long getListorderId()
    {
        return listorderId;
    }
    public void setPayId(Long payId)
    {
        this.payId = payId;
    }

    public Long getPayId()
    {
        return payId;
    }
    public void setShopId(Long shopId)
    {
        this.shopId = shopId;
    }

    public Long getShopId()
    {
        return shopId;
    }
    public void setListproId(Long listproId)
    {
        this.listproId = listproId;
    }

    public Long getListproId()
    {
        return listproId;
    }
    public void setAddrId(Long addrId)
    {
        this.addrId = addrId;
    }

    public Long getAddrId()
    {
        return addrId;
    }
    public void setMemberId(Long memberId)
    {
        this.memberId = memberId;
    }

    public Long getMemberId()
    {
        return memberId;
    }
    public void setCommentId(Long commentId)
    {
        this.commentId = commentId;
    }

    public Long getCommentId()
    {
        return commentId;
    }
    public void setGroup(Long group)
    {
        this.group = group;
    }

    public Long getGroup()
    {
        return group;
    }
    public void setListorderNum(String listorderNum)
    {
        this.listorderNum = listorderNum;
    }

    public String getListorderNum()
    {
        return listorderNum;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setfinshTime(Date finshTime)
    {
        this.finshTime = finshTime;
    }

    public Date getfinshTime()
    {
        return finshTime;
    }
    public void setDeliveryTime(Date deliveryTime)
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime()
    {
        return deliveryTime;
    }
    public void setFinallyTime(Date finallyTime)
    {
        this.finallyTime = finallyTime;
    }

    public Date getFinallyTime()
    {
        return finallyTime;
    }
    public void setOneprice(BigDecimal oneprice)
    {
        this.oneprice = oneprice;
    }

    public BigDecimal getOneprice()
    {
        return oneprice;
    }
    public void setCount(Long count)
    {
        this.count = count;
    }

    public Long getCount()
    {
        return count;
    }
    public void setTotalprice(BigDecimal totalprice)
    {
        this.totalprice = totalprice;
    }

    public BigDecimal getTotalprice()
    {
        return totalprice;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("listorderId", getListorderId())
                .append("payId", getPayId())
                .append("shopId", getShopId())
                .append("listproId", getListproId())
                .append("addrId", getAddrId())
                .append("memberId", getMemberId())
                .append("commentId", getCommentId())
                .append("group", getGroup())
                .append("listorderNum", getListorderNum())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("finshTime", getfinshTime())
                .append("deliveryTime", getDeliveryTime())
                .append("finallyTime", getFinallyTime())
                .append("oneprice", getOneprice())
                .append("count", getCount())
                .append("totalprice", getTotalprice())
                .append("state", getState())
                .append("remark", getRemark())
                .toString();
    }
}
